package edu.kaist.cs408.pof.common.model;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Reference;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/9/12
 * Time: 2:46 AM
 * To change this template use File | Settings | File Templates.
 */

@Entity("User")
public class RestaurantOwnerVo extends UserVo {

	@Reference
	RestaurantVo restaurant;


	public RestaurantOwnerVo(String username, String password) {
		super(username, password);
		this.userType = 2;
	}

	public RestaurantOwnerVo() {
		super();
		this.userType = 2;
	}

	public void setRestaurant(RestaurantVo restaurant) {
		this.restaurant = restaurant;
	}


	public RestaurantVo getRestaurant() {
		return restaurant;
	}
}
